<?php
    require_once $_SERVER['DOCUMENT_ROOT']."/weixin/weixin.php";
?>

wx.config({
  debug: true,
  appId: '<?php echo $wxs["appId"];?>',
  timestamp: <?php echo $wxs["timestamp"];?>,
  nonceStr: '<?php echo $wxs["nonceStr"];?>',
  signature: '<?php echo $wxs["signature"];?>',
  jsApiList: [
    'onMenuShareTimeline',
    'onMenuShareAppMessage',
    'updateAppMessageShareData',
    'updateTimelineShareData'
  ]
});